<?php
class Main_model extends CI_Model{
	
	function getAll(){
		//$q = $this->db->get('tungkulin');
		$q = $this->db->get('in');
		
		if($q->num_rows() > 0) {
			foreach ($q->result() as $row) {
			    $data[] = $row;
			}
		return $data;
		}
		
		
	}
	
	function getAllIN(){
		$q = $this->db->get('in');
		if($q->num_rows() > 0){
			foreach ($q->result() as $row){
				$data[] = $row;
			}
		return $data;
		}
	
	}
}